<template>
  <div>
    <h2>登录页</h2>
    <el-button type="primary" @click="goHome()">回首页</el-button>
    <br/>
    <router-link to='/welcome'>回首页</router-link>
  </div>
</template>

<script>
  export default {
    name: 'Login',
    methods: {
      goHome() {
        this.$router.push('/welcome')
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>